<?php
class ElderpaymentModel extends Orm_Base{
    public $table = 'elderpayment';
    public $field = array(
        'id' => array('type' => "int(11) unsigned",'comment' => ''),
        'sid' => array('type' => "int(11) unsigned",'comment' => '关联老人ID'),
        'basic_fee' => array('type' => "int(3)",'comment' => '基本费用'),
        'payment' => array('type' => "tinyint(2)",'comment' => '付费方式'),
        'discount' => array('type' => "tinyint(1)",'comment' => '折扣'),
        'paytimes' => array('type' => "int(5)",'comment' => '付费次数'),
        'lasttime' => array('type' => "int(11)",'comment' => '逾期付费时间'),
        'fee' => array('type' => "int(5)",'comment' => '付费金额'),
        'is_pay' => array('type' => "tinyint(1)",'comment' => '是否付费(1.已付费、2.未付费)'),
        'handlers' => array('type' => "varchar(20)",'comment' => '操作者'),
        'created' => array('type' => "int(11)",'comment' => ''),
        'updated' => array('type' => "int(11)",'comment' => ''),
    );
    public $pk = 'id';
}
?>
